package cn.wawi.controller.sys;

import java.util.List;
import cn.wawi.common.easyui.DataGrid;
import cn.wawi.controller.BaseController;
import cn.wawi.entity.sys.Dictitem;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/sys_dictitem")
public class DictitemController extends BaseController<Dictitem>{
	
	
	@ResponseBody
	@RequestMapping(value="/menuList",method=RequestMethod.GET)
	public DataGrid menuList(){
		List<Dictitem> list = dictitemDao.findAll(null);
		DataGrid dataGrid=new DataGrid(list,list.size()+0L);
		return dataGrid;
	}
}
